package com.kc.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author forever_love
 * @create 2019--10--17 8:55
 **/
@Controller
@RequestMapping("sys")
public class SystemController {
    //跳转到登录页面
    @RequestMapping(value = "/toLogin")
    public String toLogin(){

        return "system/index/login";
    }

    //跳转到登录页面
    @RequestMapping(value = "/loginFront")
    public String loginFront(){
        return "system/index/loginFrontEnd";
    }

    //登录成功跳转到首页
    @RequestMapping("index")
    public String toIndex(){

        return "system/index/index";
    }

    //跳转到中间页
    @RequestMapping("toDeskManager")
    public String toDeskManager(){

        return "system/index/main";
    }

    //跳转到日志页面
    @RequestMapping("toLogLoginManager")
    public String toLogLoginManager(){

       return "system/loginfo/logInfoManager";
    }

    //跳转到系统公告页面
    @RequestMapping("toNoticeManager")
    public String toNoticeManager(){
        return "system/notice/noticeManager";
    }
    //跳转到部门管理 /sys/toStationManager
    @RequestMapping("toStationManager")
    public  String toStationManager(){
        return "system/station/stationManager";
    }

    //跳转到左边页面
    @RequestMapping("toStationLeft")
    public  String toStationLeft(){
        return "system/station/stationLeft";
    }

    //跳转到右边页面
    @RequestMapping("toStationRight")
    public  String toStationRight(){
        return "system/station/stationRight";
    }

    //跳转到菜单管理 /sys/toStationManager
    @RequestMapping("toMenuManager")
    public  String toMenuManager(){
        return "system/menu/menuManager";
    }

    //跳转到左边菜单页面
    @RequestMapping("toMenuLeft")
    public  String toMenuLeft(){
        return "system/menu/menuLeft";
    }

    //跳转到右边菜单页面
    @RequestMapping("toMenuRight")
    public  String toMenuRight(){
        return "system/menu/menuRight";
    }

    //跳转到权限管理 /sys/toPermissionManager
    @RequestMapping("toPermissionManager")
    public  String toPermissionManager(){
        return "system/permission/permissionManager";
    }

    //跳转到左边权限页面
    @RequestMapping("toPermissionLeft")
    public  String toPermissionLeft(){
        return "system/permission/permissionLeft";
    }

    //跳转到右边权限页面
    @RequestMapping("toPermissionRight")
    public  String toPermissionRight(){
        return "system/permission/permissionRight";
    }

    //跳转到权限管理 /sys/toRoleManager
    @RequestMapping("toRoleManager")
    public  String toRoleManager(){
        return "system/role/roleManager";
    }

    //跳转到用户管理 /sys/toUserManager
    @RequestMapping("toUserManager")
    public  String toUserManager(){
        System.out.println("查询数据已执行。。。。。。");
        return "system/user/userManager";
    }

    //跳转到修改密码 /sys/changePwd
    @RequestMapping("tochangePwd")
    public  String tochangePwd(){
        return "system/user/changePwd";
    }
    //跳转到退出页面 /sys/loginout
    @RequestMapping("loginout")
    public  String loginout(){
        return "system/index/login";
    }

    //跳转到缓存管理页面 /sys/cache
    @RequestMapping("toCacheManager")
    public  String toCacheManager(){
        return "system/cache/cacheManager";
    }
}
